import Vue from "vue"
import store from '@/store/index'

Vue.directive('has', function (node, binding) {
    if (!node.disabled && !store.state.btn_permission.includes(binding.value + '')) {
        node.disabled = true
        node.style.border = 0
        node.style.opacity = 0.4
    }
})